<?PHP

$post=$_POST;
$images=new content;
$images->files=$_FILES;
$images->post=$_POST;
if($_POST['cmd']=='add' && !empty($_POST[$catch]))
{

	$post=$images->process_images();
	$post=process_serialized_values($post);
	
	process_sql_post($post,$table,'add',NULL,NULL);
	
	printmessage('Successfully Added');
}
else if($_POST['cmd']=='edit')
{
	
		$post=$images->process_images();
		$post=process_serialized_values($post);
		process_sql_post($post,$table,'update',$id,$_GET[$id]);
		printmessage('Successfully Modified');
}

	if($_GET['cmd']=='edit' && isset($_GET[$id]))
	{

		$e=get_data_form($table,$id);

	
			if($e['content_serial'] == 'N;' || empty($e['content_serial']) )
			{
	
					
			}
			else
			{
					$serial=unserialize($e['content_serial']);
					$e=array_merge($e,$serial);	
			}
				
		

	}

?>